        <!-- IF item_id -->
        <form action="admin.php?m=edit_item&p=item&item_id={item_id}" method="post">
        <!-- ELSE -->
        <form action="admin.php?m=new_item&p=item" method="post">
        <!-- ENDIF -->
        	<table>
            	<tr>
                	<td valign="top">{ITEM_CATEGORY}</td>
                	<td>
                    	<div><select name="category_id" onchange="check_if_new()">
                        	<option value="0">{PLEASE_SELECT}</option>
                        	<!-- BEGIN categories -->
                        	<option value="{category_id}" <!-- IF parent.item.category_id=category_id -->selected="selected"<!-- ENDIF -->>{name}</option>
                        	<!-- END -->
                        	<option value="new">{NEW_CATEGORY}...</option>
                        </select>*</div>
                        <div id='new_category_div' style="display:none;padding:3px;background-color:#FFFF99;">
                	<span>{CATEGORY_NAME}</span>
                	<input type="text" class="inputtext" maxlength="100" id='new_category_name' onkeypress="if (event.keyCode == 13) { new_category(); return false;}" style="width:200px" />&nbsp;<input type="button" onclick="new_category(); return false;" id='new_category_button' value="{NEW_CATEGORY}" />&nbsp;&nbsp;<input type="button" onclick="cancel_new_category();return false;" value="{CANCEL}" />
                        </div>
                    </td>
               	</tr>
                
            	<tr>
                	<td>{ITEM_NAME}</td>
                	<td><input type="text" class="inputtext" maxlength="100" name="name" value="{item.name}" style="width:600px" />*</td>
               	</tr>
                <tr>
                	<td valign="top">{ITEM_DESCRIPTION}</td>
                    <td>
				<?php
				$oFCKeditor = new FCKeditor('description') ;
				$oFCKeditor->BasePath	= 'lz_system/plugin/fckeditor/' ;

				$oFCKeditor->Value		= $_obj['item']['description'];
				$oFCKeditor->Create() ;

                    ?></td>
                </tr>
				<tr>
                	<td valign="top">{URL_NAME}</td>
                    <td>
                    <input name="url_name" class="inputtext" style="width:200px;" value="{item.url_name}" />*</td>
                </tr>
                <tr>
                	<td valign="top">{ITEM_ORDER}</td>
                    <td>
                    <input name="order_id" class="inputtext" style="width:20px;" value="{item.order_id}" /></td>
                </tr>
                
                <tr>
                	<td colspan="2" align="center"><input type="submit" value="{ITEM_SUBMIT}" /></td>
                </tr>
             </table>
             
                
           </form>

<script>
check_if_new = function() //检查是否选中了新建标签
{
	if ($('[name=category_id]').val() == 'new')
	{
		$('#new_category_div').slideDown('fast',function()
		{
			setTimeout("$('#new_category_name').focus();",10); //ie bug
		});
	}
	else
	{
		$('#new_category_div').slideUp('fast');
	}
};
function cancel_new_category()
{
	$('#new_category_div').slideUp('fast');
	$('[name=category_id]').val(0);
}
function new_category()
{
	var name = $('#new_category_name').val();
	$('#new_category_button').attr('disabled','disabled');
	if (name && window.posting != 1)
	{
		window.posting = 1;
		$.post('admin.php?p=ajax&m=new&table=category',{ 'name':name },function(s)
		{
			if (s == 'error')
			{
				alert('{NEW_CATEGORY_ERROR}');
			}
			else
			{
				var option = document.createElement('option');
				option.value = s;
				option.innerHTML = $('#new_category_name').val();
				$('[name=category_id]').append(option);
				$('[name=category_id]').val(s);
				$('#new_category_button').attr('disabled','');
				$('#new_category_name').val('');
				$('#new_category_div').slideUp('fast');
			}
			window.posting = 0;
		});
	}
}
</script>